<?php
namespace gnomephp\crud;

/**
 * Implemented to a entity if you want to limit the allowed fields to edit in the GUI.
 * 
 * A simple method named crudFields should be added and this must return a array of properties on the object that should be allowed to edit.
 * @author peec
 *
 */
interface FieldAccess{
	
	/**
	 * Should return an array of fields that are allowed to edit in the GUI.
	 * Example of output:
	 * return array('name', 'title', 'body')
	 * 
	 */
	public function crudFields();
	
}